GDK W32: Apply HiDPI scale properly to monitors
authorРуслан Ижбулатов <lrn1986@gmail.com>
Fri, 17 Feb 2017 15:59:32 +0000 (15:59 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 2 Dec 2017 10:38:25 +0000 (10:38 +0000)
commit3c9b667d3ed2b931df31da0351a09e871057a9ad
tree9caa6582ce7cc550e6f2f36caf2d06b53ed61570
parent27ed9fb11d0597dc489d1af4ccb834b4371db440
GDK W32: Apply HiDPI scale properly to monitors

Previously HiDPI scale was retrieved and applied too late in the initialization
process to affect monitor size and monitor workarea size, but the code that
initializes these sizes *did* try to use the scale, even though it was always
getting scale=1.

To fix this, move the too-late code into monitor enumeration routine.
This also fixes a probable semantic bug where width and height were divided
by scale, again.

Now monitor and workarea should be in application pixels (i.e. divided by scale),
as intended.

https://bugzilla.gnome.org/show_bug.cgi?id=778835
gdk/win32/gdkdisplay-win32.c
gdk/win32/gdkmonitor-win32.c